package patterns.bridge;

/**
 * Created by lenovo on 2016/11/24 0024.
 * 抽象类Shape，含有draw方法,并接收IDrawApi对象
 */
public abstract class Shape {
    //IDrawApi对象，桥接接口的对象实例
    IDrawApi drawApi;
    //构造函数
    public Shape(IDrawApi drawApi){
        this.drawApi = drawApi;
    }
    //抽象的图形绘制方法
    public abstract void draw();
}
